package org.example.lotterysystem.dao.dataobject;

import java.util.Objects;

public class ActivityUserDo extends BaseDO{
    /**
     * 关联的活动id
     */
    private Long activityId;
    /**
     * 关联的人员id
     */
    private Long userId;

    /**
     * 姓名
     */
    private String userName;
    /**
     * 关联人员状态
     */
    private String status;

    @Override
    public boolean equals(Object object) {
        super.equals(object);
        if (this == object) return true;
        if (object == null || getClass() != object.getClass()) return false;
        ActivityUserDo that = (ActivityUserDo) object;
        return Objects.equals(activityId, that.activityId) && Objects.equals(userId, that.userId) && Objects.equals(userName, that.userName) && Objects.equals(status, that.status);
    }

    @Override
    public int hashCode() {
        super.hashCode();
        return Objects.hash(activityId, userId, userName, status);
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
